/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dataentry;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;

/**
 *
 * @author i.capurro
 */
public class EditValues {
    private int id;
    private HashMap values;

    public EditValues(int id) {
        values = new HashMap();
        this.id = id;
    }
    
    public void insertValue(String col, String val) {
        Value v = new Value(col, val);
        values.remove(col);
        values.put(col,v);
    }
    
    public Collection getValues() {
        return (Collection) values.values();
    }
    
    public int getId() {
        return id;
    }
}
